package com.firewolf.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.firewolf.springcloud.controller.MyFilter;
import com.netflix.zuul.ZuulFilter;

@SpringBootApplication
@EnableZuulProxy
@Configuration
public class App {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}

	@Bean
	public ZuulFilter zuulFilter() {
		return new MyFilter();
	}
}
